const form = [{
    key: 'pz',
    label: '品种',
    labelWidth: 80,
    required: true,
    placeholder: '请填写'
}, {
    key: 'dh',
    label: '代号',
    labelWidth: 80,
    required: false,
    placeholder: '请填写'
}, {
    key: 'qddj',
    label: '强度等级',
    validatorNumber:true,
    labelWidth: 80,
    required: true,
    placeholder: '请填写'
},{
    key: 'slsg',
    label: '熟料+石膏（%）',
    validatorNumber:true,
    labelWidth: 120,
    required: false,
    placeholder: '请填写'
}, {
    key: 'lhglkz',
    label: '粒化高炉矿渣（%）',
    validatorNumber:true,
    labelWidth: 140,
    required: false,
    placeholder: '请填写'
}, {
    key: 'hshzhhcl',
    label: '火山灰质混合材料（%）',
    validatorNumber:true,
    labelWidth: 170,
    required: false,
    placeholder: '请填写'
},{
    key: 'fmh',
    label: '粉煤灰（%）',
    validatorNumber:true,
    labelWidth: 100,
    required: false,
    placeholder: '请填写'
}, {
    key: 'shsf',
    label: '石灰石粉（%）',
    validatorNumber:true,
    labelWidth: 130,
    required: false,
    placeholder: '请填写'
}, {
    key: 'gssghl',
    label: '硅酸三钙含量（%）',
    validatorNumber:true,
    labelWidth: 140,
    required: false,
    placeholder: '请填写'
},{
    key: 'lssghl',
    label: '铝酸三钙含量（%）',
    validatorNumber:true,
    labelWidth: 140,
    required: false,
    placeholder: '请填写'
}, {
    key: 'bzcdysl',
    label: '标准稠度用水量%',
    validatorNumber:true,
    labelWidth: 140,
    required: true,
    placeholder: '请填写'
}, {
    key: 'adx',
    label: '安定性',
    labelWidth: 80,
    required: true,
    placeholder: '请填写'
},{
    key: 'cnsj',
    label: '初凝时间min',
    validatorNumber:true,
    labelWidth: 110,
    required: true,
    placeholder: '请填写'
}, {
    key: 'znsj',
    label: '终凝时间min',
    validatorNumber:true,
    labelWidth: 110,
    required: true,
    placeholder: '请填写'
}, {
    key: 'stkzqd',
    label: '3天抗折强度MPa',
    validatorNumber:true,
    labelWidth: 130,
    required: true,
    placeholder: '请填写'
},{
    key: 'esbtkzqk',
    label: '28天抗折强度MPa',
    validatorNumber:true,
    labelWidth: 140,
    required: true,
    placeholder: '请填写'
}, {
    key: 'stkyqd',
    label: '3天抗压强度MPa',
    validatorNumber:true,
    labelWidth: 130,
    required: true,
    placeholder: '请填写'
}, {
    key: 'esbtkyqd',
    label: '28天抗压强度MPa',
    validatorNumber:true,
    labelWidth: 140,
    required: true,
    placeholder: '请填写'
}, {
    key: 'zxbz',
    label: '执行标准',
    labelWidth: 80,
    required: true,
    placeholder: '请填写'
}]
const requiredArr = []
const notRequiredArr = []

let tempArr = []
form.forEach(item => {
    if(item.required) {
        tempArr.push(item)
    }else {
        notRequiredArr.push(item)
    }
    if( tempArr.length >= 2 ) {
        requiredArr.push(tempArr)
        tempArr = []
    }
})

if( tempArr.length > 0 ) {
    requiredArr.push(tempArr)
    tempArr = []
}

export default {
    requiredArr,
    notRequiredArr
};